#ifndef _BUFFER_H_
#define _BUFFER_H_

#define BUFFER_SIZE 2025

#include "../include/defs.h"

typedef struct buffer{
	char buffer[BUFFER_SIZE];
	int ultimo;
	int actual;
	int lleno;
}buffer_t;

void inibuff(buffer_t * bufferT);

int buffisempty(buffer_t * bufferT);

int putcharbuff(buffer_t * bufferT, char c);

int putbuff(buffer_t * bufferT, char * buffer, int cant);

int putbuff_until(buffer_t * bufferT, char * buffer, int cant, int end);

int getcharbuff(buffer_t * bufferT, char * destbuff, int cant);

int removecharbuff(buffer_t * bufferT);

int getbuff(buffer_t * bufferT, char * destbuff, int cant);

#endif
